package com.itheima.reggie.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class Category implements Serializable {
    private static final long serialVersionUID = 1L; //序列化标识符，确保在不同编译器上反序列化的uid相等。
    private Long id;             //bigint(20)                   NOT NULL COMMENT '主键',
    private Integer type;         //int(11) DEFAULT NULL COMMENT '分类 0:菜品分类 1:套餐分类',
    private String name;          // varchar(64) COLLATE utf8_bin NOT NULL COMMENT '名字',
    private Integer sort;          // int(11) DEFAULT '0'          NOT NULL COMMENT '顺序',
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTable;  // datetime                     NOT NULL COMMENT '创建时间',
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime uptateTable;// datetime                     NOT NULL COMMENT '更新时间',
    @TableField(fill = FieldFill.INSERT)
    private Long createUser;  // bigint(20)                   NOT NULL COMMENT '创建人',
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateUser;  // bigint(20)                   NOT NULL COMMENT '更新人',
}
